package com.demo.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(name = "Product", description = "商品实体，包含商品名称和价格")
public class Product {
    @Schema(description = "商品ID", example = "101", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "商品名称", example = "iPhone 15", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "商品价格", example = "6999.00", requiredMode = Schema.RequiredMode.REQUIRED, minimum = "0")
    private Double price;
} 